package com.cherry.domain;

import java.util.HashSet;
import java.util.Set;

public class Role {
	private Long id;
	private String name;
	private String memo;
	
	//多对多，需要用户集合
	private Set<User> users = new HashSet<User>();


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public Set<User> getUsers() {
		return users;
	}

	public void setUsers(Set<User> users) {
		this.users = users;
	}

	@Override
	public String toString() {
		return "Role [id=" + id + ", name=" + name + ", memo=" + memo + ", users=" + users + "]";
	}
	
}
